﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HAVTKPack
{
        [Serializable]
   public  class SourceSinkEntitySetup
    {

       public SourceSinkEntitySetup()
       { 
       
       
       }



       bool _isEnable = true;///是否使用

       public bool IsEnable
       {
           get { return _isEnable; }
           //set { _isEnable = value; }
       }

       int _glyphScaleSize = 10;//类型设置为 int？？

       public int GlyphScaleSize
       {
           get { return _glyphScaleSize; }
           //set { _glyphScaleSize = value; }
       }


       System.Drawing.Color _glyphColor = System.Drawing.Color.Red;

       public System.Drawing.Color GlyphColor
       {
           get { return _glyphColor; }
           //set { _glyphColor = value; }
       }

       vtkGlyphSource2DDrawType _drawType = vtkGlyphSource2DDrawType.Diamond;

       public vtkGlyphSource2DDrawType DrawType
       {
           get { return _drawType; }
           //set { _drawType = value; }
       }





        public void UpdateSourceSinkEntitySetup(SourceSinkEntitySetup setup)
        {
            if (setup ==null )
            {
                return;
            }

            this._isEnable = setup._isEnable;

            this._glyphScaleSize = setup._glyphScaleSize;

            this._glyphColor = setup._glyphColor;

            this._drawType = setup._drawType;
        
        
        }

        public void UpdateDrawType(vtkGlyphSource2DDrawType drawType)
        {

            _drawType = drawType;
        }




    }

}
